package com.inspector.app.ui.login

import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter


/**
 * 时控件、时售件
 * @author CodeK 2023/10/8
 */
class LoginTabAdapter(activity: AppCompatActivity) :
    FragmentStateAdapter(activity) {
    override fun getItemCount(): Int = 2

    override fun createFragment(position: Int): Fragment {
        return if (position == 0) UserPwdFragment() else  PhoneNumLoginFragment()
    }
}